#include "Common.h"
#include "Crc/App_Crc.h"

SINT32 main(SINT32 argc, CHAR **args)
{
    UNUSED(argc);
    UNUSED(args);

    UCHAR string[] = "hello World";
    UCHAR ucCrc = 0;
    UINT16 usCrc = 0;
    UINT32 uiCrc = 0;    

    ucCrc = AppCrc8_PositiveCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc8_PositiveCalVerify crc %u\n", ucCrc);
    
    ucCrc = AppCrc8_PositiveTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc8_PositiveTabVerify crc %u\n", ucCrc);

    ucCrc = AppCrc8_ReverseCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc8_ReverseCalVerify crc %u\n", ucCrc);
    
    ucCrc = AppCrc8_ReverseTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc8_ReverseTabVerify crc %u\n", ucCrc);
    
    usCrc = AppCrc16_PositiveCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc16_PositiveCalVerify crc %u\n", usCrc);

    usCrc = AppCrc16_PositiveTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc16_PositiveTabVerify crc %u\n", usCrc);
    
    usCrc = AppCrc16_ReverseCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc16_ReverseCalVerify crc %u\n", usCrc);

    usCrc = AppCrc16_ReverseTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc16_ReverseTabVerify crc %u\n", usCrc);

    uiCrc = AppCrc32_PositiveCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc32_PositiveCalVerify crc %u\n", uiCrc);
    
    uiCrc = AppCrc32_PositiveTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc32_PositiveTabVerify crc %u\n", uiCrc);

    uiCrc = AppCrc32_ReverseCalVerify(string, strlen((CHAR *)string));
    printf("AppCrc32_ReverseCalVerify crc %u\n", uiCrc);
    
    uiCrc = AppCrc32_ReverseTabVerify(string, strlen((CHAR *)string));
    printf("AppCrc32_ReverseTabVerify crc %u\n", uiCrc);

    return 0;
}

